<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/materialdesignicons.min.css" rel="stylesheet">
	<!--对话框-->
	<link rel="stylesheet" href="js/jconfirm/jquery-confirm.min.css">
	<link href="css/style.min.css" rel="stylesheet">

	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<!--对话框-->
	<script src="js/jconfirm/jquery-confirm.min.js"></script>
	<script type="text/javascript" src="js/main.min.js"></script>

</head>
<body>

<!--订单信息-->
<div class="container" style="border: 1px solid lightgrey" >

		<div class="row" style="height: 40px; background-color: rgba(206,212,218,0.32)">
			<h2 style="color: orange;height: 25px ;position: relative;left: 20px">订单信息</h2>
		</div>
	<div class="row" style="height: 10px"></div>
	<div style="width: 80%; position: relative;left: 10%;">
	</div>
	<div style="width: 96%; position: relative;left: 2%;border: 2px solid orange;box-shadow:0 6px 3px -1px lightgray"></div>
		<div style="width: 80%; position: relative;left: 40%;">
			<div style="height: 30px"></div>

			<form action="/alipay/pay">
				订单编号：<label id="orderno"></label>
				<input type="text" name="WIDout_trade_no" id="orderno_input" hidden="hidden">
				<br>
				订单金额：<label id="money"></label>
				<input type="text" name="WIDtotal_amount" id="money_input" hidden="hidden">
				<br>
				支付方式：<label id="paytype">支付宝支付</label>
				<input type="text" name="WIDsubject" id="paytype_input" hidden="hidden">
				<br>
				<input type="submit" class="btn btn-w-md btn-round btn-warning" value="确认提交">
			</form>
		</div>
	</div>

<script type="text/javascript">

$(document).ready(function(){
	//所有放到sessionStorage值都是以字符串的形式存储
		var o_id = window.sessionStorage.getItem("o_id");
		var order_no = window.sessionStorage.getItem("order_no");
		var total_money = window.sessionStorage.getItem("total_money");
		
		$("#orderno").text(order_no);
		$("#orderno_input").val(order_no);
		$("#money").text(total_money);
		$("#money_input").val(total_money);

		$("#paytype_input").val(o_id);

	});

</script>
</body>
</html>